package com.hnkywl.sts.webservice.wly;

import net.ruixin.orm.hibernate.Page;

import java.util.Date;

/**
 * Created by Administrator on 14-1-6.
 */
public interface IAccountBalance {
    /**
     * 根据买家在系统esb code查询账户余额
     *
     * @param memberCode
     * @return
     */
    public String queryAccountBalance(String memberCode);

    /**
     * 锁定账户余额
     * <p/>
     * 参数格式：
     * {
     * "memberCode":"买家在系统的esb code",
     * "amount":"锁定金额",
     * "order_sn": "合同号",
     * "order_id": "合同id",
     * }
     *
     * @param param
     * @return
     */
    public String lockAccountBalance(String param, Long serialNumber);

    /**
     * 解锁账户余额
     * <p/>
     * 参数格式：
     * {
     * "memberCode":"买家在系统的esb code",
     * "amount":"解锁金额",
     * "order_sn": "合同号",
     * "order_id": "合同id",
     * }
     *
     * @param param
     * @return
     */
    public String unlockAccountBalance(String param, Long serialNumber);

    /**
     * 查询二级账户明细
     * @param param
     * @return
     */
    public String accountDetailsQuery(String param);

}
